package com.daoshu.socket.service.impl;

import com.corundumstudio.socketio.AuthorizationListener;
import com.corundumstudio.socketio.HandshakeData;

/**
 * @ClassName: UserAuthorizationListener
 * @description:
 * @author: Allen
 * @create: 2019-06-25 18:03
 **/
public class UserAuthorizationListener implements AuthorizationListener {
    @Override
    public boolean isAuthorized(HandshakeData handshakeData) {
        // 可以使用如下代码获取用户密码信息


        return true;
    }
}
